home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 176-200 / 190 / nethack / een.zoo / hack.h < prev    next >
C/C++ Source or Header  |  1988-07-26  |  2KB  |  79 lines

  1. /*    SCCS Id: @(#)hack.h     2.3     87/12/12
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3.  
  4. #ifndef HACK_H
  5. #define HACK_H
  6.  
  7. #ifdef __TURBOC__
  8. /* work around the case-insensitivity of the DOS linker */
  9. #define Amonnam Amonnam_
  10. #define Xmonnam Xmonnam_
  11. #define Monnam Monnam_
  12. #define POISONOUS POISONOUS_
  13. #define Doname Doname_
  14. #define Tmp_at Tmp_at_
  15. /* rename the next two functions because they clash with the Turbo C library */
  16. #define getdate getdate_
  17. #define itoa itoa_
  18. #endif
  19.  
  20. #include "extern.h"
  21.  
  22. #define Null(type)      ((struct type *) 0)
  23.  
  24. #include    "objclass.h"
  25.  
  26. typedef struct {
  27.     xchar x,y;
  28. } coord;
  29.  
  30. extern coord bhitpos;    /* place where thrown weapon falls to the ground */
  31.  
  32. #include    "monst.h"       /* uses coord */
  33. #include    "gold.h"
  34. #include    "trap.h"
  35. #include    "flag.h"
  36.  
  37. #define plur(x) (((x) == 1) ? "" : "s")
  38. #define min(x,y) ((x) < (y) ? (x) : (y))
  39.  
  40. #define BUFSZ    256    /* for getlin buffers */
  41. #define PL_NSIZ 32    /* name of player, ghost, shopkeeper */
  42.  
  43. #include    "rm.h"
  44.  
  45. #define Inhell        (dlevel >= 30)
  46. #define newstring(x)    (char *) alloc((unsigned)(x))
  47.  
  48. #ifdef SPELLS
  49. #define NO_SPELL    0
  50. #endif
  51.  
  52. #define TELL    1
  53. #define NOTELL    0
  54.  
  55. #define ON 1
  56. #define OFF 0
  57.  
  58. #ifdef GENIX
  59. #define DIST    jhndist
  60. /*    genix compiler chokes on DIST macro below - jhn*/
  61. #else
  62. #define DIST(x1,y1,x2,y2)       (((x1)-(x2))*((x1)-(x2)) + ((y1)-(y2))*((y1)-(y2)))
  63. #endif
  64.  
  65. #define PL_CSIZ     20    /* sizeof pl_character */
  66. #ifdef HARD
  67. #define MAX_CARR_CAP    120    /* so that boulders can be heavier */
  68. #else
  69. #define MAX_CARR_CAP    500
  70. #endif
  71. #ifdef RPH
  72. #define MAXLEVEL    60
  73. #else
  74. #define MAXLEVEL    40
  75. #endif
  76. #define FAR    (COLNO+2)       /* position outside screen */
  77.  
  78. #endif /* HACK_H /**/
  79.